package com.example.administrator.rxjavademo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class F2Activity extends AppCompatActivity
{

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_f2);
    }

    @Override
    protected void onStart()
    {
        super.onStart();
        l("onStart");
    }

    private void l(String msg)
    {
        Log.e("s", msg);
    }

    @Override
    protected void onResume()
    {
        super.onResume();
        l("onResume");
    }

    @Override
    protected void onPause()
    {
        super.onPause();
        l("onPause");
    }

    @Override
    protected void onStop()
    {
        super.onStop();
        l("onStop");
    }

    @Override
    protected void onRestart()
    {
        super.onRestart();
        l("onRestart");
    }

    @Override
    protected void onDestroy()
    {
        super.onDestroy();
        l("onDestroy");
    }

    @Override
    protected void onNewIntent(Intent intent)
    {
        super.onNewIntent(intent);
        l("onNewIntent");
    }

    public void click(View view)
    {
        startActivity(new Intent(this, MainActivity.class));
    }
}
